package com.bjsxt;

/**
 * 财务部，具体的执行者部门
 *
 * @author melo
 */
public class Financial implements Department {

    private final Mediator mediator;

    public Financial(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("financial", this);
    }

    @Override
    public void selfAction() {
        System.out.println("financial:数钱");
    }

    @Override
    public void outAction() {
        System.out.println("financial:发钱");
        mediator.command("market");
        mediator.command("development");
    }

}
